package com.campus.model;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.lang.reflect.Type;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class TManagerActivity {

  @ApiModelProperty("活动id")
  @TableId(type = IdType.AUTO)
  private Long id;

  @ApiModelProperty("活动名称")
  private String name;

  @ApiModelProperty("活动类型")
  private String category;

  @ApiModelProperty("活动全称")
  private String title;

  @ApiModelProperty("活动创建者")
  @TableField(fill = FieldFill.INSERT)
  private String creator;

  @ApiModelProperty("活动摘要")
  @TableField(value = "abstract")
  private String tabstract;

  @ApiModelProperty("活动详细内容")
  private String detailedDesc;

  @ApiModelProperty("活动状态")
  private Long status;

  @ApiModelProperty("活动创建时间")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @TableField(fill = FieldFill.INSERT)
  private Date createdTime;

  @ApiModelProperty("活动归档时间")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date archivedTime;

  @ApiModelProperty("活动图片地址")
  private String picUrls;

  @ApiModelProperty("活动开始时间")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date startTime;

  @ApiModelProperty("活动结束时间")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date endTime;

  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date publishTime;

}
